package worktime.yft.demo.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import worktime.yft.demo.Bean.UserAndDepartmentBean;
import worktime.yft.demo.Entity.User;

import java.util.List;

@Mapper
public interface UserMapper {
    public int insert(User user);

    public void updatePsw(@Param("id") String UserId,@Param("psw") String password);

    public void delete(@Param("id") String UserId);

    public User findUser(@Param("id") String UserId);

    public List<UserAndDepartmentBean> findUserAndDepartment();

    public List<String> findDepartment();
}
